home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
util
/
gnu
/
emacs_src.lha
/
emacs-18.58
/
contrib
/
hessu
/
emacs.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1992-10-01
|
495b
|
26 lines
/* emacs.rexx */
parse arg params
id=pragma('id')
if ~show('P', 'EMACS1') then do
if ~open(out, 't:emacs', 'w') then do
say "EMACS.REXX: Can't open temporary file!"
exit 5
end
call writeln(out, 'stack 49152')
call writeln(out, 'run >nil: <nil: temacs' params)
call writeln(out, 'stack 16384')
call close(out)
address command 'execute t:emacs'
exit
end
if word(params,1)='-f' then do
address 'EMACS1' '('subword(params, 2)')'
exit
end
address 'EMACS1' '(find-file "'params'")'